package net.mysgame.czfun.module.user.store;

import net.mysgame.czfun.module.user.data.CzUser;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.UpdateProvider;


/**
 * Created by manatea on 2016/5/19.
 */
//@Repository
public interface CzUserMapper {
    @Select("SELECT * FROM cz_user where id = #{id}")
    public CzUser getUserById(@Param("id") long id);

    @UpdateProvider(type = UserSql.class,method = "insert")
    public boolean addOrUpdateUser(CzUser czUser);
}
